package guoanmaker.provider.business.repository;

import java.util.List;

import org.hibernate.boot.spi.JpaOrmXmlPersistenceUnitDefaultAware;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import guoanmaker.provider.business.model.PerviderDictionary;

/**
 * 
* @ClassName: ProviderDictionaryRepository
* @Description:数据字典 (这里用一句话描述这个类的作用) 
* @author lihongyu
* @date 2017年7月10日 下午2:35:29 
*  
 */
public interface ProviderDictionaryRepository
		extends JpaRepository<PerviderDictionary,String>,JpaSpecificationExecutor<PerviderDictionary> {
	
	 @Query("select t from PerviderDictionary t where t.fatherID = :fatherID ")
	    List<PerviderDictionary> findAllByfatheridList(@Param("fatherID") String fatherID);

}
